Implementation of quicksort using linked-list.