BubbleSort
small modifications