suffix trees code