Update cachematrix.R

is it correct!?