initial matrix inverse caching