Update cachematrix.R

My Programming Assignment 2 For Coursera's R Programming Course