Update cachematrix.R

Added comments to explain purpose of program and functions.