complete the quick sort algorithm