Use unique_ptr in Map, remove the destructor.