store modifications to cachematrix.R