edit cachcematrix for assignment