Update cachematrix.R

Add a few comments to explain my code