Update cachematrix.R

My version of cachematrix.R for September Week 3