Dijkstra shortest path algorithm implemented with VC++