Explain how meiosis is important in terms of heredity and the law of segregation