def _min_index(b, h):
    """
    Returns: The index of the minimum value in b[h..]

    Parameter b: The sequence to search
    Precondition: b is a mutable sequence (e.g. a list).
    """
    # We typically do not enforce preconditions on hidden helpers

    # Start from position h
    i = h
    index = h;

    # index is position of min in b[h..i-1]
    while i < len(b):
        if b[i] < b[index]:
            index = i
        i = i+1

    # index is position of min in b[h..len(b)-1]
    return index