Il problema è che occorre verificare la presenza di chiavi duplicate.Prendere tree.c e commentare tree_join