AI4G: dijkstra completed with lists implemented as heapq.

See: https://docs.python.org/3.7/library/heapq.html