Update cachematrix.R

for the Programming Assignment 2: Lexical Scoping