Update cachematrix.R

Update from Atanu