add non-recursive quick sort.