adding extended euclid, gcd, modular inverse, power mod algorithms
adding extended euclid, gcd, modular inverse, power mod algorithms