Experimenting with different approach to sum modulo to avoid msvc issue