quick sort for link list