Editing bubble sort