Understanding Data Structures In Cpp