BigNum modular exponentiation