Method that runs the agnes algorithm using the Euclidean metric to make an external or internal validation of the cluster.