Create Logistic Flow Algorithm