More work on suffix tree.