Queue implementation
Interval queue implementation