The origin of extra teeth in mammals