the maxheap for top k method