complete version of matrix inversion cache for assessment