added general driver, improved quicksort

quicksort still OBO on the input file sort