Update cachematrix.R

Assignment Program 2 with updated comments