Modified Breadth First Search BFS for Weighted Graph (Inefficient Shortest Path Solution)