created matrix inversion cache