Fix multithreaded merging and make it use all available threads. Make sorting methods accept 'end' index as parameters instead of last. Add sorting and merging interfaces. Add 2-way "classic" merger.