C++ Data Structures Class