Update cachematrix.R

submit my homework