code for denoising autoencoder.  TOTALLY UNTESTED