Library: Fixed powMod() for y = 0 and mod = 1.