static byte[] toByteArray(final BaseSeq<BitGene> genes) {
		final byte[] bytes = Bits.newArray(genes.length());
		for (int i = 0; i < genes.length(); ++i) {
			if (genes.get(i).booleanValue()) {
				Bits.set(bytes, i);
			}
		}

		return bytes;
	}
Creates a new, classical <em>codons</em> object from the given bit-genes.
The genes is split into 8-bit chunks and converted into an unsigned
{@code int[]} array.
{@snippet lang="java":
final Codons codons = Codons.ofBitGenes(BitChromosome.of(10_000));
}

@param genes the genes used for creating the codon object
@return a new <em>codons</em> object
jenetics.ext/src/main/java/io/jenetics/ext/grammar/Codons.java