Implement greedy and beam decoding | Cresta