merge sort on tasks (not complete)