Mergesort implemented