Remove duplicate class definition and replace shared_ptr constructor with make_shared for the Torrent class