Genome scanning methods for comparing sequences between groups, with application to HIV vaccine trials