How could multiple algorithms that communicate with each other be implemented? I have tried to make custom classes but sorting subscriptions for the different 'algorithms' gets messy fast. Is there a better method to achieve this?

Author