Prepare the interface of priority queue.