Added world and group reduce function to the communicator.