how to solve bisection method