Update cachematrix.R

submission version