VC++ shortest path