Update cachematrix.R

Committing the updated version