updated quicksort, not quite working