Initial commit of cachematrx.R