Add a simple implementation of Pollard's rho method.