changes in bubblesort