Exact tests for Linkage Disequilibrium and Hardy-Weinberg Equilibrium