update bubble-sort