Optimization of distributions differences for classification