completed and tested quick sort.