Constructing the Matrix Multilayer Perceptron and its Application to the VAE