Clustering analysis by measuring the shortest distance between two objects