Implemented bisection method to find best spot.