Update cachematrix.R

Solution uploaded.