Add alternative implementation of tree.