Update cachematrix.R

Simple code, based on makevector, mean example provided