Variational Autoencoders: A Vanilla Implementation