add most of file 1 and split into multiple cpp

also add 1-d interpolation
remove sstream