Cache the inverse of the matrix