comments for brent's algorithm