Added DFS and BFS and Unit tests for these. Also modified some logic in
Dijkstra's algorithm