fix annoying isValidInt bug
Work on optimizing Pollard Rho.
Clean up, refactor, rename Factored to Factors
Bugfixes, additional methods, etc.

Fixed division, modulus bugs. Also added gcd, lcm, and a bunch of
methods taking SafeLong instead of Factors.