void write(final ObjectOutput out) throws IOException {
		writeInt(_rules.length(), out);
		for (int i = 0; i < _rules.length(); ++i) {
			out.writeObject(_rules.get(i));
		}
	}
Create a new TRS from the given rewrite rules.

@param rules the rewrite rules
@return a new TRS
@throws NullPointerException if one of the arguments is {@code null}
@throws IllegalArgumentException if the given {@code rules} sequence is
        empty
jenetics.ext/src/main/java/io/jenetics/ext/rewriting/TRS.java