, start, end, data):
        &#34;&#34;&#34;
        Adds an interval.
        &#34;&#34;&#34;
        self._by_start.add((start, end, data))
        self._by_end.add((start, end, data))

    def update(self, tupleiterable):
        &#34;&#34;&#34;
        Updates from an iterable of intervals.
        &#34;&#34;&#34;
        self._by_start.update(tupleiterable)
        self._by_end.update(tupleiterable)

    def remove(self, start, end, data):
        &#34;&#34;&#34;
        Removes an interval, exception 