submission of cachematrix.R