Secret of QuickSort

This is the core technology of QuickSort.

The x here is the pivot. Create two linked list head, one is for nodes less than the pivot, the other is for node greater than or equals to the pivot.

After all nodes are sent into the two heads, join the two heads togetoher.