Added fast modular exponentiation to primetest.py