builds a mrpmatrix on a huge input files quickly