first change to cachematrix.R