update to cachematrix