Add function for depth first traversal of the suffix tree.
Change substring class annotation to use the ST walk interface rather than inspecting the nodes directly.