made an exception in bisection when x0 = x1