Update cachematrix.R

Submitting homework2