Update cachematrix.R

Inserting my solution.