def add(self, value):
    i = 0
    while ((i < len(self.list)) and (self.list[i] < value)):
        i += 1
    if self.__unique:
        if ((len(self.list) == i) or (self.list[i] != value)):
            self.list.insert(i, value)
    else:
        self.list.insert(i, value)
def add(self, value):
    i = 0
    while ((i < len(self.list)) and (self.list[i] < value)):
        i += 1
    if self.__unique:
        if ((len(self.list) == i) or (self.list[i] != value)):
            self.list.insert(i, value)
    else:
        self.list.insert(i, value)