Update cachematrix.R

Programming assignment 2