Drop the 46_Accumulate by Template

Implement with Template instead of for/while loop
Add some comment