modified queue to be less of a bottleneck by en-/dequeuing mulitple elements at once