added path tracing & length features to dfs, bfs