segmkf function

Segments for cross-validation