Feofillof version of quicksort