quick sort in a linked-list without using additional space