updates to cachematrix