Distance Based Clustering for Categorical Data