Quicksort addition - still a bit buggy