IntervalVector algorithm to make the most closely-packed closed-position interval sequence possible from some interval sequence