changes in cachematrix.R