Update cachematrix.R

Final solution of the Programming assignment #2