Update cachematrix.R

programming assignment 2