Bounded Queue implementation.