Template:cpp/algorithm/dsc partial sum