An implementation of Dijkstras for All Points Shortest Path.

Note, hasn't been checked for correctness.