Create and computes the inverse of the matrix using solve