assignment 2

save the inverse matrix in the cache