cleaned bubble_sort