added simd optimization for avg pooling