Caching Inverse of Matrix