Added fast modular exponentiation