Added comments to cachematrix.R explaining the code