Finished pa5.  Made sure to never compute an exponentiation onside the modulus.