Implemented bubblesort (minor fix quicksort)