Python implementation of Pollard's Rho - 1 attack