Added an autoencoder implementation.