quick sort (first impl.)