An innovative approach based on a tree-searching algorithm for the optimal matching of independently optimum sum and difference excitations