CanSNPer: a hierarchical genotype classifier of clonal pathogens