undid all changes to solve std::stod compile error just use g++ -std=c++11...