fix bug in logistic regression
add logistic_reg example