A two-type branching process model of gene family evolution