Factorial k-means analysis for two-way data