Implementation of a priority queue using a Fibonacci heap in C++