Update Depth First Search

Ensure nodes are visited in increasing order