Basic mergesort