Update cachematrix.R file for R_programming class