Supervised and Unsupervised Model-Based Clustering with Variable Selection