Update cachematrix.R

added solution of this assignment