update the log of quick sort