Some common functions for modular arithmetic using native JS implementation of BigInt
modpow for deno
modpow operation on big integers