Segmenting DNA sequences