First structure of beam search