bubble sort without flag swapped