added generate function so UniqueQueue conforms to SequenceType in order to iterate UniqueQueue