[FEATURE] Computing more statistics in compute_gain.
Merge pull request #409 from holtgrewe/feature/compute_gain_stats

[FEAUTRE] More statistics in compute_gain.