added sum_regression.cpp

Only skeleton is there, not done yet.