File cachematrix.R for R course Prog Ex No. 2