Finished the solve method for the Bisection Class TODO:Check given parameter in function