Multi-threaded version mergesort