swap node in pairs

Signed-off-by: Mory Mobile <mory.mobile@gmail.com>