Wrote a mergesort