added KMaxPriorityQueue