suffix tree, grams, fix bugs
update CMakeLists for libalgo target