SuffixTree implementation and usage