Machine-part grouping and cluster analysis: similarities, distances and grouping criteria