Update cachematrix