Added external Dijkstra w/ priority queue optimisation