the study of heredity and variation of traits