Variable selection for clustering and classification