Added a more generic cluster scoring method to TemplateCluster class