An Automated Solution to Causal Inference in Discrete Settings