Update cachematrix.R

Code from RStudio alpha