Analysis of haplotype networks: The randomized minimum spanning tree method