added more comments to cachematrix.R