Update cachematrix.R

this is my solution