Binary segmentation methods for identifying boundaries of spatial domains