Begin implementing dijkstra for paths queries