Custom implementations of common data structures in C++