Outliers and patterns of outliers in contingency tables with algebraic statistics