Update cachematrix.R

R Programming Assn 2