Update cachematrix.R

Complete changes