adding update to cachematrix