def METHOD_NAME(shelf, left, right):
    if left < right:
        pivot_index = left
        pivot_new_index = partition(shelf, left, right, pivot_index)
        METHOD_NAME(shelf, left, pivot_new_index - 1)
        METHOD_NAME(shelf, pivot_new_index + 1, right)