How to quickly identify rock classes using a data clustering technique based on a machine-learning approach