Added algorithm division + random alg chooser