uva 341 - straightforward lazy dijkstra implementation