Update cachematrix.R

Few changes