Computes the inverse of a square matrix using row echelon reduction
The matrix to invert
The inverse matrix M⁻¹
Error if the matrix is not square
Computes the inverse of a square matrix using row echelon reduction