Fix overflow bug in modular exponentiation.