Reduced per-chr memory footprint by spliting mate writing into two steps: write unsorted, read-sort-write.