Solved problem 440
Added modpow to matrices with BigInteger exponent