Update cachematrix.R

My edit for cachematrix.R