Genome classification by dictionary-based indexes