update bubble sort