Reduce memory usage in phase 0 and 1 when no items are used.
Fix whitespace issues in merge_sorter.h.