ooft, finally working quicksort, only took me a day