Modified cache matrix.R to meet assignment