add rules to make the optimization iteration auto stop
add logistic regression unit test and fix some bugs
change iteration stop rules in LR
add roc curve function