kth smallest or largest using max heap or min heap - priority_queue