update second trial of swap-nodes-in-pairs