Remove TODOs in merge_sorter.h.
Move merge_sorter thread termination to end() for the empty input.
Add join thread call when using internal sorting.
Make memory exceeded message include percentage.
Fix memory reporting in merge sorter.