Haplotype network construction