Might be good to rename this file to transitive_closure, and the LR one to logistic_regression