added monotone stack decoding