Update cachematrix.R

Amendments