Update cachematrix.R

second edit of cachematrix.r