Update cachematrix.R

Followed closely the code given by makeVector and cachemean