Quicksort algorithm which perform sorting of partitions in different threads using pthreads