Bisection now can accept a function as parameter