Increased laziness in DepthFirstSearch.hs