Gravar-mail: Exact median-tree inference for unrooted reconciliation costs