Implement seeding and clustering in e/g trigger algo