modified MainPredictKMeans to work with quantitized features