Implement new C++ data structure to power algorithms