swapChildren basic implementation
simple swapChildren example/test
removed example from main swap branch
early-out for self-swap
check for invalid children
style consistency
Merge pull request #431 from namuol/swapChildren

`swapChildren` implementation