c++ implementation of data tables