Added fast modular exponentiation to sympy.ntheory.primtest.py

This is intended as a part of the AKS primality testing algorithm I am working on.
I did not find fast modular exponentiation algorithm in the sympy docs, so I thought I'd contribute!

Thank you.