High-dimensional density estimation with tensorizing flow