bubblesort modified