Update cachematrix.R

R Code for Coursera's R Programming Course - Programming Assignment 2: Lexical Scoping