Calculate the arithmetic mean of a strided array using a second-order iterative Kahan–Babuška algorithm.