implement bubble_sort problem