Reducing Gas Emissions in Smart Cities by Using the Red Swarm Architecture (CAEPIA'13)