Context-Based Distance Learning for Categorical Data Clustering