Classification of factorial generalized down-up algebras