RSA Algorithm - input 2 primes, Euler's totient function n1, public key exponent e
Modular multiplicative inverse d (trial), encryption and decryption functions