Computational Commutative Algebra in Discrete Statistics