tried parent swapping in RST
more wrong code for everyone
fixed all bugs with RST.hpp
removed unnecessary comparisons
Merge pull request #1 from y2bd/parent-swap

Fixed all RST bugs