Update cachematrix.R

Added the code for the cacheSolve function using the example in the exercise for the mean.