C++ csv parsing and handling