use list append in qsort