implementing class haplotype
add buildmodel, getBiallelicCoding, getGeneralCoding