Implements Dijkstra's algorithm using Fibonacci heaps