Update AlgorithmComponent.php

Added a function to run the algo multiple time and choose the best repartition possible