sorting names using merge sort