Clustering on a microcomputer with an application to the classification of coals