Imrpoved traversal, implemented topological orderig