Dijkstra: Commenting the efficiency of algorithm