Update cachematrix.R

Solution of assignment 2