Analysis of High-Dimensional Categorical Data such as SNP Data