Update cachematrix.R

Add my code for cachematrix