Update cachematrix.R

For submission