Skeletonization algorithm matlab code, See his papers for more details