Learning DAGs and Trees with Box Embeddings and Hyperbolic Embeddings