Applications Of The Hardy-Weinberg Principle To Detection Of Linkage Disequilibrium And Genotyping Errors In The Context Of Association Studies