add the distribution training

The training corpus is divided into n parts. Then parameters by
distributed training are merged as follows: wg = wg + \sum(wn-wg), wn =
wg