added vectorized sparse autoencoder