Adaptive genetic algorithm for dynamically reconfigurable modules allocation