fixed underflow bug in logistic regresssion
fixed underflow bug in logistic regresssion and merge