updated bubble_sort, bubble_sort_by