Added modInv to FuncLib