add batch version of mlp and stacked autoencoder