Online logistic and regular regression