interrupted bubble sort