Optimizations with CUDA: A Case Study on 3D Curve-Skeleton Extraction from Voxelized Models