Dijkstra's algorithm in Java