edit cachematrix.R as part of Porgramming Assignment 2