Almost working suffix tree