much faster quicksort and saner gauss code