Masked Autoregressive Flow for Density Estimation