use keep k size heap sort method to get k maximum element