More robust line splitting for triangle_reader
Add parameters nruns and mode to combine a number of runs