Cachec matrix inverse