Add ThreadedQuickSort class and others fixes