Add a class to get inverse of a matrix