Add sum function as a new feature.

Signed-off-by: oooxff <oooxff@gmail.com>