This function computes the inverse of a given matrix using the Gauss- Elimination method.
An exception is thrown if the matrix has no inverse
@param coef the matrix which inverse matrix is needed
@return inverse matrix of the input matrix.If the matrix is singular, null is returned.
@throws RuntimeException if the given matrix is not invertible