Version 1 of matrix inverse cache code