My final cachematrix.R version.