Describe the important processes involved in gamete formation in testes and ovaries