Implemented Brent Solver, it has some bugs