Updating example code, stack_map_t class.

The class now uses unique_ptr instead of shared_ptr to just manage the
references to the root_info_t data for each safe-point.