Bisection ready, but only works on second grade functions