train recursive autoencoder