Redid mergesort for practice