add a segentation iterator
better segementation generation
woooohoooooo... exact calculation slow, but working
fixed random sequence generator