modify:reorganize the bubble_sort