Link Phylogeny for Hardy-Weinberg Principle