First pass of matrix inverse caching based on example