Dijkstra's Shortest Path (aka Dijkstra's Algorithm) in Erlang