edit cachematrix with my code