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