Update pollard_rho.cpp