comited for the assignment 2 the cache of the inverting the matrix
for the first assignment: