sparse autoencoder for feedforward, building block for stacked autoencoder