edit cachematrix.R to complete hw assignment