change bubblesort to quicksort