Update cachematrix.R

Here is my solution