suffix tree seems to be working