Model outlier removal contribution

Rebase on current master
Licence update
Code formatting

Is that the good way to update @TimoHackel's contribution #254 ?