Working bubblesort