merge two sorted links