Implement the constructor and destructor of hops_table.