repair chtb_init function
add implementation of binary tree
update license to GPL 3