Cluster categorical data using a K-Modes algorithm.