An adaptive strategy for association analysis of common or rare variants using entropy theory