Loading Depth-first search