added comments to cachematrix