[Circular list] Completed Brent's algorithm part