Update cachematrix.R

Last changes applied to my code