Fixed error in BigIntMod root function