Cyclic coordinate descent for logistic, Poisson and survival analysis