1st submission of cachematrix.R