Improve segment algorithm in RnnWS
Merge branch 'batch_rnn' of https://github.com/playcoin/lm-project into batch_rnn