More efficient computation

But it leaks memory like crazy
Replaced Gmp integers with Big_ints

These don't leak so horribly