SMS: Genome clustering