Update cachematrix.R

Submission of the Coursera Programming_Assignment_2