add some support function for Platt SMP

smo simple algo do't work well