implement bubbleSort and selectionSort