genetic algorithm like segmenation