Muli-threaded version of the quicksort algorithm