Update cachematrix.R

Final Code