Updating cachematrix.R file