quick sort for single linked list