solved bigmod, updated modpow