Mergesort source code