Generalized the QuickSort sample to use as many processors as available.