dijkstra's algorithm for shortest path
conflicts solved