Update cachematrix.R

added solution