Optimized BigInteger power algorithm, using the binary exponential table rather than the modPow() function. Greatly increased running speed.