Bailey's method (root finding)