Update bubble sorter.