Heap Based TOPK Algorithm