Update cachematrix.R

submit assignment2