Update cachematrix.R

Add my solution of the assignment