Update cachematrix.R

added further comments to each of the steps