Cached Matrix inverse