updating cachematrix.R file- 2nd