quick sort algorithm update