Added some utility methods

Added method to calculate a private key from a public key (RSA). Works
for 'small' primes, modulus and keys….