Reduce array indexing & improve comments in pareto_optimal()