Maximally selected statistics for SNP data