edit cachematrix.R for submission