Implemented Sparse Autoencoder with gradient checking