std::accumulate vs. std::reduce

https://blog.tartanllama.xyz/accumulate-vs-reduce/