SuffixTree in Java