change decode function implementation to be more memory friendly without expanding to all turns
change decode function implementation to be more memory friendly without expanding to all turns

kaishengyao/cnn,kaishengyao/cnn