allreduce example added to charm