Update cachematrix.R

minor fixes