A Clustering Method for Automatic Biometric Template Selection