fix suffix tree traversal for large alphabets