Update cachematrix.R

Added additional comments to the code explaining what is happening.