Building logreg parallel