Adding hidden model and argmax algorithm for scoring haplotype pairs.