Pollard Rho

This will compute the values of the iteration of a function modulo $n$. The function is currently set to $x \mapsto x^2 + 1$.