Added shortest path algorithms using DFS and BFS