modPow

fun modPow(exp: BigInt, m: BigInt): BigInt

Modular exponentiation: (this ^ exp) mod m, via right-to-left square-and-multiply. Equivalent to boost's powm(base, exp, mod).