Java version of the large number decomposition algorithm PollardRho