bubblesort in scala