Update cachematrix.R

Added my version of the Code