bubble_sort_by function added