implemented fast segmentation for walls