Update cachematrix.R

task from Programming Assignment 2: Lexical Scoping