Added non recursive quick sort