Min-heap based k largest elements in an array