Update cachematrix.R

Danny Fang Week2 Assignment