Sorts are hugely memory-intensive: just run four at once.
Should always make 16 libraries.
Don't bother with the sort-half thing: it's pretty fast either way.
using Subfunctions.pm module
adding debug hooks.