Commiting the caching of inverse of a matrix