add data example code, build weighted mean code into one Cpp file
update data example code