suffix tree, good but there is a problem with registering an idex for a vertex