Hierarchical clustering algorithm for comprehensive orthologous-domain classification in multiple genomes