if greater_than_pivot_index < less_than_pivot_index:
     temp = the_array[greater_than_pivot_index]
     the_array[greater_than_pivot_index] = the_array[less_than_pivot_index]
     the_array[less_than_pivot_index] = temp
else:
     break