update quick sort