Update cachematrix.R

Made changes to the cache solve to use the solve function and cache the inverse mean.