In a memo to the company, Huang admitted that he had an affair.