Optimizing GPU-Based Connected Components Labeling Algorithms