working doubly-linkedlist, started dijkstra