quicksort example that uses threading to increase computational time.