quick sort - not in place