Fix parent pointer in invoice tree node
Fix issue in rebalance
Initial unit tests for NodeInterval class