updated
classic merge sort algorithm for linkedlist.