the_array[pivot_index]=unsorted_array[less_than_pivot_index]
the_array[less_than_pivot_index]=pivot
return less_than_pivot_index