add djikstra implementation. uses heapq