Update cachematrix.R

Updated with comments