Multi-task Logistic Regression Code