C++ Deduplication Research Code