Update cachematrix.R

Refreshed for second iteration of rprog course