Use shared_ptr for RoadGraphDatabaseResult