Added Kth largest element and powerset