quick sort algorithm 3