Parallel consistent labeling algorithms