Update cachematrix.R

Assignment Program2 with comments