caching the matrix inverse value