Matrixes successfully inverting with cache