added unit tests for the multilayer net class and verified that it works, and cleaned sparse autoencoder stuff a bit