Lossless Compression with Latent Variable Models