brent root finder bug fixed