Removed unused moduloInverse function