Suffix tree application