Construction of factorial designs