Update cachematrix.R

R Programming Assignment 2