Just some exercise on basic data structures implemented in C++