Update cachematrix.R

Final Submission for Assignment 2