moved qsort to simple programs