implement by heap-sort to get topk
modify the modify_heap function in heap-sort
!!if swap twice then the heap will be destroyed !!