implementing HaplotypeDiploid