Working version of Pollard's Rho algorithm