Skeletonization

Codes for skeletonization.