static BitChromosome read(final DataInput in) throws IOException {
		final var bytes = readBytes(in);
		final var length  = readInt(in);
		final var p = in.readDouble();
		final var genes = BitArray.of(bytes,0, length);

		return new BitChromosome(genes, p);
	}
Create a new {@code BitChromosome} from the given character sequence
containing '0' and '1'; as created with the {@link #toCanonicalString()}
method. The {@link #oneProbability()} of the chromosome is set to
{@code 0.5}.

@param value the input string.
@return a new {@code BitChromosome} with the given parameter
@throws NullPointerException if the {@code value} is {@code null}.
@throws IllegalArgumentException if the length of the character sequence
        is zero or contains other characters than '0' or '1'.
jenetics/src/main/java/io/jenetics/BitChromosome.java