caching inverse of a matrix