Added Determinant of matrix mod M