merge two sorted list and swap pairs