Computational commutative algebra in discrete statistics