Bisection Method Code