Added initial revision of safe_ptr.h.