week5, dijkstraData algorithm. without heap.