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