Design of a collective communication infrastructure for barrier synchronization in cluster-based nanoscale MPSoCs