Implement the ability to cache the inverse of a Matrix.