A Heuristic-Based Decision Tree for Connected Components Labeling of 3D Volumes