Added matrix inverse cache.