merge two sorted list reimpl