modified the suffix tree to work with any sequence of hashable? objects