add shape segmentation code
delete some unrelated files