Update cachematrix.R

My Programming Assignment 2