Incorrect swapping in triple_swap()