Added c++11 flag to make gcc recognize std::stoi and the fstream open stuff using strings