Added DFS implementation and a demo usage.