cneanup code
cg merge bit_tree_node with tree_node structure
correct prototypes