Ped/map writer and Swap alleles

Swap alleles