add pareto algorithm