merge of tries