linked list pairwise swap nodes