Implementation of powerful data structure for C++ while keeping thing clean and simple