haplen-class function

class for haplotype length