Added two versions of both threaded and non-threaded quicksort versions