Fix SAE.

Tune LBFGS parameters.
In-place operations.
Separate files.
Clean up.
Train SAE on MNIST.