Second commit of cachematrix.R for R Prog assign#2

Second commit of R Programming Assignment 2 code.
Updated with more complete comments