Methods and software for identifying contaminated samples from SNP genotypes