Update README.md

Now supports both BFS and DFS.