Update cachematrix.R

I added the necessary code