bst C++ implementation
fix confusion in 'this' pointer in set_end_of_word method