implement binary tree autoencoder interfaces