simple Segmentation, will commit statistics soon after more test
beta version of seg, without DB, save for version control