Update cachematrix.R

Final version for grading