integrated suffix tree based version