Update code in cachematrix