Added quad-segmentation.cpp