Merge sort for link list