Trimmed down PollardRho.