Fixed a bug in the rebalancing in rbtree
refactored test code to make it easier to read
deletion from permanent rbtrees is easy