reimplemented bubblesort (repeat 4 learning)
repeating quicksort