version of cachematrix.R with comentaires