First commit of quick sort with pthreads