Implemented pareto without apache commons, huge performance boost