made the qsort example better