Implemented Data Structures in C++