Update cachematrix.R

Edited Code.