Computing Data Structures In Cpp