encode_genotype_vec function

Encode a genotype/SNP vector