wrote bubblesort