finished multithreaded mergesort implementation