Iterative quick sort