Authored SUM aggregate function.
Implemented ydb_avg and cleaned up ydb_sum.