implemented bubblesort, and bubble_sort_by