chinese new word method using suffix tree in C++