Caching Inverse Matrix