Putting auxiliar struct inside Dijkstra's