Calculte mappings between trees