update avl implementation from packetbb