Working version of a "deep" autoencoder scheme