Implementation of the alignment and evaluation of trees