working version of sparse autoencoder
update to correct solution