Priority Queue, O(nlogk), AC