suffix trees seem to be working