modified merge two sorted list.