Update cachematrix.R

Assignment Program2 with final updated comments