Change model object to use boost::shared_ptr

[#67930112]
Change the main objects to use boost::shared_ptr