Task 2.3.20 (Non-Recursive quick sort)