Brent now tries to create a bracket using the initial guess. Also tests the bracket points for roots before iterating.