The genetic algorithm approach and K-means clustering: their role in unsupervised training in image classification