ModularInteger fast exponentiation
ModularInteger fast exponentiation

Changed the ModularInteger pow method to use fast exponentiation
instead of the usual python exponentiation operator. This is a speed-up
since the intermittent results never exceed mod.

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy