Add optimized version of pollutantmean function