NOT-TESTED SEGMENTATION ALGORITHM

Just for backup purpose...