start implementing dijkstra's