Update cachematrix.R

Submission of JHU R Programming Assignment 2