Implement Illinois algorithm.
Adding Brent's method.