Update cachematrix.R

functions implemented without comments