Autoregressive flow-based casual discovery and inference