API add sum_of(CODE, lower, upper) to integrate arbitrary funcitons over sample data
API trimmed_mean(), fix edge cutting bug in sum_of