Update cachematrix.R

assignment 2. 19.6 upedate