edit cachematrix.R, added code from Programming Assignment 2