Algebraic and Geometric Methods in Statistics: Contingency tables