Genetic variations and adaptation in tree populations