Use shared_ptr to store DictEntry
Add unit test for Segmentation and Conversion