Add weight decay term

1. Add a weight decay term in weight updating
2. Add a test function to measure how accurate the autoencoder is
3. Run the test on the training set to examine the effect of the weight
decay term