[circular list] Added the purely functional brent's solution