Data Structure Implemetation with C++ and Python