Add IntervalSet class.