Scoping: caching inverse of the matrix