edit cachematrix.R for R Programming Assignment 2