Add DepthFirstPaths class