terminator bug fixed with suffix_tree-ans.py