cachematrix.R performs as advertised.