Update cachematrix.R

functionality inserted