added List Classes for Dijkstra's algorithm