Implementation of Dijkstra's Algorithm - Adjacency List (Java)