Update cachematrix.R

Final Solution