Add swap helper methods.
Make the maximum amount of memory to use configurable for MergeSorter.
Rename TimSorter.save to saveAll to avoid confusion with MergeSorter.save which has different semantics.