Math functions

Thank you gmplib... FastExp, gcd, and multInverse