fix bugs in decode algorithm in rnnpos
Merge branch 'batch_rnn' of https://github.com/playcoin/lm-project into batch_rnn