A handrolled accumulate