Update cachematrix.R

Lexical Scoping Assignment for R