Added FEN's segmentation algorithm