Value is sorted out after all iterations and it is stored as global best.
The termination criterion is checked after sorting module to know
whether the pre-determined number of iterations is completed. On
its completion, the algorithm passes to the output module