Interface changes in genseq

Changed interface of SequenceGenerator and Emitter for beam search.