Genetics and random keys for sequencing amd optimization