method add (id,v) = Hashmap.add table id v