added allreduce simulation