Update cachematrix.R

for peer assessment