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