First attempt of implementing an optimization algorithm for mitochondrial networks