Update bubble sort