Variational Autoencoder with Learned Latent Structure