Some data structure implementations in C++