Collective communication using scatter