refactoring: BisectionMethod.c