- Fixed some code in modular_gcd that prevented the selection of new
  primes. This could cause an infinite loop
- Simplified the mgcd algorithm a bit (and made it more similar to the
  literature)