Replace straight addition with Kahan summation and move max to the end (GH-8727)

1 file changed