Parallel quick sort using Pthread library.