segmentation.BM function

Segmentation in the BM case