bubble_sort in scala