persistant data structure implemented in C++.