Added working quicksort