what is the scientific study of heredity