Update cachematrix.R

It's my solution.