Matrix inversion cache program with unit test results