fixed bubble sort