A genetic algorithm based solution for dynamically reconfigurable modules allocation