Update cachematrix.R

Submitting the assignment.